<template>
	<el-card shadow="hover" header="欢迎">
		<div class="welcome">
			<div class="logo">
				<img src="img/logo.png">
				<h2>欢迎你 {{userName}}</h2>
			</div>
			<div class="tips">
				<div class="tips-item">
					<div class="tips-item-icon"><i class="el-icon-menu"></i></div>
					<div class="tips-item-message">这里是项目控制台</div>
				</div>
				<div class="tips-item">
					<div class="tips-item-icon"><i class="el-icon-s-promotion"></i></div>
					<div class="tips-item-message">动态路由权限</div>
				</div>
				<div class="tips-item">
					<div class="tips-item-icon"><i class="el-icon-milk-tea"></i></div>
					<div class="tips-item-message">可配置后台</div>
				</div>
			</div>
		</div>
	</el-card>
</template>

<script>
	export default {
		title: "欢迎",
		icon: "el-icon-present",
		description: "项目入口欢迎信息",
		data() {
			return {
				userName: ""
			}
		},
		created(){
			var userInfo = this.$TOOL.data.get("B_USER_INFO");
			this.userName = userInfo.name;
		},
		methods: {
			
		}
	}
</script>

<style scoped>
	.welcome {}
	.welcome .logo {text-align: center; margin-top: 10px;}
	.welcome .logo img {vertical-align: bottom;height: 70px;margin-bottom: 20px;}
	.welcome .logo h2 {font-size: 20px;font-weight: normal;display: flex;align-items: center;justify-content: center;}

	.tips {margin-top: 54px;padding:0 40px;}
	.tips-item {display: flex;align-items: center;justify-content: center;padding:7.5px 0;}
	.tips-item-icon {width: 40px;height:40px;display: flex;align-items: center;justify-content: center;border-radius: 50%;font-size: 18px;margin-right: 20px;color: var(--el-color-primary);background: rgba(180,180,180,0.1);}
	.tips-item-message {flex: 1;font-size: 14px;}

	.actions {text-align: center;margin: 40px 0 20px 0;}
</style>
